package diShiSanZhou;

public class Custom implements Runnable{
    Factory factory;

    public Custom(Factory factory) {
        this.factory = factory;
    }

    @Override
    public void run() {
        while(true){
            try {
                this.factory.bandWithdrawal();
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    }
}
